import org.junit.Assert
import org.junit.Test

class KtTest {
    @Test
    fun testSomeThing() {
        Assert.assertEquals(1 + 1, 2)

        val words = listOf("cba", "bbb", "ae", "ba", "aaa", "ccc")

        val result = words.groupBy {
            it[0]
        }.mapValues {
            it.value.sorted()
        }

        println(result)

    }
}